package com.controller;


import com.util.RabbitmqUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("product")
public class Controller {

    @RequestMapping("send")
    public String send(@RequestParam("message") String message) {
        RabbitmqUtils.send("woniu12", false, false, false, null, message);
        return "完成生产111";
    }
}
